package comp.wxapi.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.*;

import javax.persistence.*;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * This code is generated
 */
@Entity
@javax.persistence.Table(name="wx_qrcode")
public class WxQrcode implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid2")
	@Column(name = "id" , unique = true )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String id ;

	@Column(name = "create_time"  )
@javax.persistence.Temporal(TemporalType.TIMESTAMP)
private java.util.Date createTime ;

	@Column(name = "appid"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String appid ;

	@Column(name = "code"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String code ;

	@Column(name = "qrcode_url"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String qrcodeUrl ;

	@Column(name = "ticket"  )
@org.hibernate.annotations.Type(type="org.hibernate.type.StringType")
private String ticket ;
	public String getId() {
			return id;
		
	}

	public void setId(String id) {
		this.id = id;
	}

	public java.util.Date getCreateTime() {
			if(createTime!=null){
				java.util.Date ret = new java.util.Date(createTime.getTime());
				return ret;
			}else{
				return null;
			}
		
	}

	public void setCreateTime(java.util.Date createTime) {
		this.createTime = createTime;
	}

	public String getAppid() {
			return appid;
		
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getCode() {
			return code;
		
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getQrcodeUrl() {
			return qrcodeUrl;
		
	}

	public void setQrcodeUrl(String qrcodeUrl) {
		this.qrcodeUrl = qrcodeUrl;
	}

	public String getTicket() {
			return ticket;
		
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}
}
